package com.st.rzs.redis.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface IRedisClient {

	public static final String TYPE_NONE = "none";
	public static final String TYPE_STRING = "string";
	public static final String TYPE_LIST = "list";
	public static final String TYPE_SET = "set";
	public static final String TYPE_HASH = "hash";

	public boolean containsKey(String key);

	public boolean addObject(String key, List<String> value);

	public boolean addObject(String key, List<String> value, int seconds);

	public boolean addObject(String key, Set<String> value);

	public boolean addObject(String key, Set<String> value, int seconds);

	public boolean addObject(String key, Map<String, String> value);

	public boolean addObject(String key, Map<String, String> value, int seconds);

	public boolean setObject(String key, String value);

	public boolean setObject(String key, String value, int seconds);

	public boolean setObject(String key, List<String> value);

	public boolean setObject(String key, List<String> value, int seconds);

	public boolean setObject(String key, Set<String> value);

	public boolean setObject(String key, Set<String> value, int seconds);

	public boolean setObject(String key, Map<String, String> value);

	public boolean setObject(String key, Map<String, String> value, int seconds);

	public boolean removeObject(String key);

	public Object getObject(String key);

	public String getObject(String key, String fieldName);

}
